<template>
  <div>
    <div class="list" v-for="(v, i) in arr" :key="Number(v.songid) + 666 + i">
      <div class="left">
        <img :src="v.src" alt="" />
        <i class="iconfont icon-bofang"></i>
      </div>
      <div class="right">
        <div class="right-left">
          <p>
            <span
              style="
                font-style: oblique;
                font-size: 0.35rem;
                display: inline-block;
                margin-right: 0.05rem;
              "
              >{{ i + 1 }}</span
            >{{ v.title }}
          </p>
          <!-- <span>{{ v.uiElement.subTitle.title }}</span> -->
          <span>{{ v.author }}</span>
        </div>
        <div class="right-right">
          <i class="iconfont icon-bofang02"></i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["arr"],
  mounted() {
    // console.log(this.props.arr);
  },
};
</script>

<style lang="less" scoped>
.list {
  display: flex;
  .left {
    position: relative;
    width: 0.97rem;
    height: 0.97rem;
    // background-color: seagreen;
    text-align: center;
    line-height: 0.97rem;
    margin-right: 0.18rem;
    img {
      width: 0.97rem;
      height: 0.97rem;
      border-radius: 0.12rem;
    }
    i::before {
      display: inline-block;
      font-size: 0.29rem;
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      margin: auto;
    }
  }
  .right {
    width: 5.25rem;
    margin-right: 0.5rem;
    display: flex;
    .right-left {
      display: flex;
      width: 4.15rem;
      height: 1.15rem;
      line-height: 1.15rem;
      border-bottom: 0.02rem solid #f1f1f1;
      font-size: 0.3rem;
      p {
        vertical-align: middle;
      }
      span {
        font-size: 0.19rem;
        vertical-align: middle;
      }
    }
    .right-right {
      width: calc(100% - 4.15rem);
      text-align: right;
      i {
        font-size: 0.4rem;
        line-height: 1.15rem;
      }
    }
  }
}
</style>